<!--
 * @Author: your name
 * @Date: 2020-12-29 17:47:45
 * @LastEditTime: 2020-12-29 17:59:25
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \basiccss\background\jingxiang.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>径向渐变</title>
    <style>
        body{
            padding: 10px;
        }
        div{
            width: 80vw;
            height: 80vh;
            border: 2px solid #dddddd;
            margin: auto;
            /*设置渐变*/
            /* background: radial-gradient(red,blue,green); */

            /*设置渐变的高度和宽度*/
            /* background: radial-gradient(200px 200px,red,blue,green); */

            /*左下渐变*/
            /* background: radial-gradient(at bottom left,red,blue,green); */

            /*右下渐变*/
            /* background: radial-gradient(at bottom right,red,blue,green,orange); */

            /*左侧向中心渐变*/
            /* background: radial-gradient(at center left ,red,blue); */

            /*底部向中心渐变*/
            background: radial-gradient(at 50% 100%,red,blue);
        }
    </style>
</head>
<body>
    <div>
        
    </div>
</body>
</html>
